package com.shared.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;

import java.util.Date;
import java.io.Serializable;

/**
 * (POrders)实体类
 *
 * @author makejava
 * @since 2020-07-01 16:42:27
 */
@ApiModel(value = "POrders", description = "订单")
public class POrders implements Serializable {
    private static final long serialVersionUID = 421969512272438296L;
    @ApiModelProperty(value = "[自动增长]主键id")
    private Integer id;
    @ApiModelProperty(value = "[必填]订单编号")
    private String ordernsn;
    @ApiModelProperty(value = "[必填]用户id")
    private Integer userid;
    @ApiModelProperty(value = "[必填]收货人姓名")
    private String username;
    @ApiModelProperty(value = "[必填]收货人号码")
    private String userphone;
    @ApiModelProperty(value = "[必填]订单收货地址")
    private String useraddress;
    /**
     * 应付金额
     */
    @ApiModelProperty(value = "[必填]应付的金额")
    private Double goodsprices;
    //优惠券id
    @ApiModelProperty(value = "[必填]优惠券id")
    private Object couponid;
    /**
     * 优惠金额
     */
    @ApiModelProperty(value = "[必填]优惠金额")
    private Integer coupons;
    /**
     * 实付金额
     */
    @ApiModelProperty(value = "[必填]实付金额")
    private Integer totalamout;
    @ApiModelProperty(value = "[必填]订单状态：0、代付款，1，待发货，2、待收货，3、待评价，4、完成，5,、已取消")
    private Integer state;
    @ApiModelProperty(value = "[必填]订单创建的时间")
    private Date foundtime;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Object getCouponid() {
        return couponid;
    }

    public void setCouponid(Object couponid) {
        this.couponid = couponid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrdernsn() {
        return ordernsn;
    }

    public void setOrdernsn(String ordernsn) {
        this.ordernsn = ordernsn;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserphone() {
        return userphone;
    }

    public void setUserphone(String userphone) {
        this.userphone = userphone;
    }

    public String getUseraddress() {
        return useraddress;
    }

    public void setUseraddress(String useraddress) {
        this.useraddress = useraddress;
    }

    public Double getGoodsprices() {
        return goodsprices;
    }

    public void setGoodsprices(Double goodsprice) {
        this.goodsprices = goodsprice;
    }

    public Integer getCoupons() {
        return coupons;
    }

    public void setCoupons(Integer coupons) {
        this.coupons = coupons;
    }

    public Integer getTotalamout() {
        return totalamout;
    }

    public void setTotalamout(Integer totalamout) {
        this.totalamout = totalamout;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getFoundtime() {
        return foundtime;
    }

    public void setFoundtime(Date foundtime) {
        this.foundtime = foundtime;
    }

}